﻿using System;

namespace GenericityFunc
{
    class Program
    {
        static void Main(string[] args)
        {
            Func<double, double, double> func = (a, b) => { return a + b; };
            //Func<double, double, double> func = (double a, double b) => { return a + b; };//前面声明了类型为double之后，后面的a和b可以将double省略不写，因为a和b的计算继承了func的性质
            
            var result = func(201.1, 100.4);
            Console.WriteLine(result);


        }
    }
}
